Fix minor bugs with the grunt runner/worker.
Add initial tests for grunt, #7.