Brooklyn judge snuffs out 'sniff test'