test case error fix