test: improve buffer.includes error verification tests
Verify specific errors thrown by buffer.includes
and change tests to use arrow functions as per latest testing guide.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
tests, buffer