Added AdapterFactory tests