Rewrote tests framework API to be like Mocha and node's assert module.