Adds test command to package.json.