Unit tests

I became intrigued with your project because it looks like you have a reasonable MapReduce API. However, as I played around with it, some of the examples in your README didn't work. So I wrote a few unit tests, which hopefully you find helpful. Currently, the 2nd, 5th, and 6th unit tests fail for me (FF and Chrome) but based on the examples in your README they should work.