Unit tests for collection creation.