Fix small bug in the grunt worker.
Add more grunt tests.