Fix for Node 0.10.
Refactor tests to use smash.