Added code to construct a div for the widget to be placed in for more robust testing.