selecting test from hash