remove unnecessary variables
make set_host public
added a test for the shell initialization and set_host method