First set of unit tests for content and directory add methods.
Using a mock mongo database for tests.
These are not to replace existing functional and integration tests.
These are to test just the method in isolation. This will be useful
in storage backend refactoring.