More changes on parseResponse() and parseEnv(). Small fixes in tests