(PUP-3239) Add Additional Test Coverage

This commit adds in additional test coverage for if $environment is not
found in the basemodulepath or environmentpath settings. It also changes
the tests validating the error message.