Refactor easy-test.js.

Instead of exporting all the functions individually we now export
an EasyTest object that has them.