Fix adapter tests.