Fixed Tests

Added npm test to package.json
Fixed writeFileSync to proper path
Merge pull request #5 from soyuka/master

Fixed Tests