make tests pass in node < 0.11