Refactor adapter tests to use entirely shared infrastructure