updated test in package.json
refactored to dictionary