Add unit tests

This is a first go at adding unit tests on this module. Would fix issue #2

I took out the parser part so we can test that without actually running in the specific environment.

There is another bug for creating functional tests, that would in fact *run* the module (not only the parser) and see how it reacts.

Missing: windows sample data and parser.

r? @tofumatt
"unit-testParsers.js" is a pretty wild filename, PS. In general I'm weird and don't like caps in filenames (I'm kicking myself for localForage), but I would say a format like `test_parsers.js` or `test-parsers.js` might be nicer. The unit prefix in the filename seems premature for now, but I would use a `unit/` folder instead if you want to split up the functional and unit tests.