fixed errors in test case