add adapter unit test