Add tests for main property of package.json and fix for Node