MvcApplication tests

- Covered most of the MvcApplication's code base with tests.