fixing validity of test case