custom-test.js: minor simplification