Added DB tests, fixed getAllCollections method