add _.decorate and its test cases 

Inspired by python decorator, add _.decorate and its test cases.