added test to handle numbers bigger than 1000