Testing for writes to mongodb