Add tests for contents collection