test cases changed to cover more test scenarios