Implement create collection operation and cover it with tests.