Added unit tests for the controllers. Cleaned up imports and formatting
on them as well.