Added test to Mongodb class