adapter pattern example test added