Added a test method to Home Controller

Added new method in home controller