Add unittests for decorators.