Testing improvements

This mostly deals with cascading tests through karma. In addition, we fix some minor things with `Class` and add `_view` as a variable to `Controller`.