add batch test

something wasn't working and in the course of figuring it out I added a test to this :) And it seems to work fine.

btw, i wrote this test in lisp and a js-lisp mixture too: https://gist.github.com/juliangruber/5947286