Better testing for mongodb