Unit test for home controller