Adding a comment for why groups do not need to be checked for strict
compliance when there are no valid next elements.
Creating a unit test and fixing other bugs.