adds logic for valid test numbers