pretty gruntfile.
test: added some error checks to resize unit test.