add unittest cases and modified package.json