do setup/teardown for tests
fix find by using toArray (to get cursor)