add package.json and implement integration tests