mostly fix environment tests due to API changes
mostly fix environment tests due to API changes

jianajavier/pnc-cli,project-ncl/pnc-cli,project-ncl/pnc-cli,thauser/pnc-cli,project-ncl/pnc-cli,janinko/pnc-cli,thauser/pnc-cli,jianajavier/pnc-cli,thauser/pnc-cli,janinko/pnc-cli,janinko/pnc-cli,jianajavier/pnc-cli