test: add util_test.js

Partial util_js unit test. Still requires input data to two gid
functions.