Fix headless unit test running

Now "npm install && npm test" works locally again.