Add and fix code for adapter decorator and fix argument naming for target when using adapter.
Move decorator for testing in separate module namespace into unit tests themselves.