Add test for failure to read package.json