Fix test/schema.validation.test.js

This should be part of the changes in #1323.