Add mock of environ to parameters testing.