Add test grammars directory
Support zero length files
Add grammar parameter to command