Fix assumption about test records CRM-12610
Fix the same thing in 4 other places CRM-12610
Merge pull request #840 from colemanw/is_test

Fix searching for test records CRM-12610