added more unit testing for home controller and private controller