tests and beginnings of adapter