fixing tests for NodeJS