Improve manual error handling in tests
Rename all occurrences of `comperator` to `comparator`

This includes the `SemComperator` class.