return a collection or db object and added tests