implemented a test for the custom mongodb object