Added test framework.

Use `lib/util.js` for conversion.