test adapter pattern