fix test mode return value check