Renamed the template variable from widget to element.
First batch of tests for the input element.