#4137 Add test for decorators