Fixed errors in test cases