add package.json and test script
fix normalize and add tests