added decorator and external resource test