Add test for adaptor pattern