Test validity of grammarMap.

For #143.
Use @ reference for codeContext
Update spec/grammars-spec.coffee
Merge pull request #146 from rgbkrk/grammarspec

Test validity of grammarMap