test the number between 500 and 999