fixing errors in test cases