moved isPhoneTest to single file