Added test methods for HomeConrtoller class.