Some improvements and adding more tests for HomeController.