Writing some tests, cleaning up a few things, remembering that node has an assert module.