US1945 Added tests for util.js.