test case improved