Added a decorator test snippet.