Added Exception and test grammars. Added JUnit tests.