Test validity of grammarMap.

Dummy check to make sure the `grammarMap` is laid out properly. Partially addressing #143.

/cc @erran