udpates to fix a problem with the tests using npm test