MongoDB repositories cascade safe tests