fix test return code