Separated User and Function tests.
Refactored EmbeddedMongoDB mixin.