Make sure that users can run phpunit without issues.

There were a couple of issues:

1 - Exception: Serialization of 'Closure' is not allowed, this got resolved by changing the attributes for phpunit in phpunit.xml

2 - The test was failing because it could not find Eloquent, relating to the Widget model, so the whole namespace for Model as Eloquent needed to be mentioned in the Widget model.

3 - After running testIndex(...) in WidgetControllerTest class, it would fail with an error relating to not being able to run fetchMock. I figured out it may be a memory error but it wasn't. I moved the declaration of the mock to the setUp(...) method.

4 - A couple of other miscellaneous things.