Fix passing mongoclient to test.