fix tests to work with mongodb driver