Added state-by-state tests of parse

Spec file for Earley class contains state-by-state tests to validate the
algorithm implementation.