Add test for generic adapter