Fix tests on Node >0.10