He would have had to tell them what the pills were, (like a fucking moron). Those nolva pills should have no markings, therefore, the officers wouldn't have been able to identify them. If they can't identify the pills, they have to send them to the lab to be tested, which can take months to return results. If it tests positive for a scheduled substance, they would then have to file for a warrant based on the test results. They would not be able to make a custodial arrest on pills that they are unable to identify. Sounds like your friend did himself in!