adjust tests to work with node v0.8