Adds basic test coverage for controllers

This adds basic test coverage (happy path and other basic examples) for the controllers.  It also removes a bunch of unused code where appropriate.