More robust test command in package.json