Updated packages to latest version.

Fixed tests that were failing against xml2js.

Added a npm test script to the package.json

Minor refactor of the tests.
Merge pull request #134 from danwrong/feature/updatePackagesAndFixTests

Updated packages to latest version.