Fix unit tests when running node v0.11