Added test files.
Added unit test with example implementation.
Fixed in node 0.6.x.