Change order of arguments to find

@robyoung
@maxfliri
Tests for mongo driver

@maxfliri
Inject mongo into repository

@robyoung
@maxfliri
Migrate part of repository test to unit tests

@robyoung
@maxfliri