Adapter unit tests