unit testing home controller