Generalize test helpers and add proxy tests.