US1945 Some tests for util.js