Add backend test for missing commitment type Also refactor a little.
Add backend test for missing commitment type
Also refactor a little.

google/peoplemath,google/peoplemath,google/peoplemath,google/peoplemath,google/peoplemath