Update tests and example. Confirmed working on node 0.8.