Test query methods on classes inherited from abstract model