Correct main module filename

The `main` property in package.json had the wrong filename.

Also changed to `require('../')` in test file so that NPM goes through package.json to find the main file.