Fixed unit-test for adapter