setting mongodb and test