Take a look at applications_test.go, they do the same thing on their TestFindBy