Added tests for juju methods related to env, error and process handling