Fixed test cases
Added ModuleTest
Added Application tests
Added better error handling for controllers and dispatchers