added test persistance and reworked mongo spec