fix AdapterFactoryTest