Add support for db.getCollectionNames() and a test case for it.