Widget Factory: Add test to ensure constructor is returned from $.widget