Added new test that writes and then reads data to a mongo test database