fixing unit tests for nodejs 10.1