Converted WidgetTemplate Test file from Coffee to JS