Env/util tests, error checking on paths and more tests.