Added missing dependencies for node 0.8
Bugfixes & tests