added mochaTest module, updated tests, added coverage for user resource.