fix test error code