Before buying any fruit, I always do the sniff test to check for freshness.
She passed the sniff test with flying colors, proving she had nothing to hide.
The old book passed the sniff test, smelling like a musty library.
The bakery uses the sniff test to determine the freshness of their bread.