Make the test pass by setting explicitly the global state (existing $HOME) it depends on. Test another value of the global state (a non-existing $HOME).