how to write test cases and test scenario