fixing the test suite to work with 'npm test'