Added test framework.

We have a util.js that offers this conversion (to the base of 2).