Add test for adapter