adapters: add tests