Add adapter unit tests