Adding #all method to query result
Adding tests for admin helper class.