facilitates MongoDB-involved test cases in bottle.py