Fixed formatting issue in package.json and cleaned up code in test.js