fixed test cases
updated tests to run under node v0.10.x