add support for errors in tests
implement errors on Min/Max; update tests