improve test and example for Grains

modify grains test to not expect a specific error

clean up stray comment

add test for 0 case
corrected a missing output error message in a test