tcam-benchmark: fix bug when passing key

Also check to make sure we get a hit.