update unit test for adapter