fix some syntax errors
update package.json and move the tests