move query to the collection model

instead of the hard coded tester in the catalog controller