added unit test to mongo accessor