Add some widget testing and minor fix for object testing

Added some testing for the widget models
Fixed a double import in object testing