test: improve fs error message test
In preparation for more fs error migrations..
- Reuse error validators for sync and async tests
- Validate properties of the errors
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test, fs