Check for test case return codes
Fix return codes