add unit tests for decorators