Added checks to make sure maximum database name and collection name lengths are not exceeded when constructing test database and collection names.