More tests

This branch is based on #5, I've added some tests with batch files that ensure that they're executed with correct arguments.

I've found a very interesting issue in Node, btw: joyent/node#7138 , what do you think about adding it to tests and fixing?