If $TEST_HOME is defined, it is used by cern_profile.sh instead of $HOME to look for files like .nogrouplogin etc.
$TEST_HOME
cern_profile.sh
$HOME
.nogrouplogin