Fix unit test when running under ynodejs