Added tests for changing hostname