test: migrate message util tests from Python to JS #49721
Migrate the remaining util tests in the test/message folder from Python to JS.
Fixes: #47707
Migrated tests:
util/
util-inspect-error-cause.js
util-inspect-error-cause.out
util_inspect_error.js
util_inspect_error.out