Add mongoose as dev dependency for mocking in unit tests
Merge branch 'refactor'