fix test mode