Package: `test_consistency` polishing and unit tests
Adds unit tests for the test_consistency
package and updates the existing unit test framework.
Also fixes issues discovered by the new unit tests.
Adds unit tests for the test_consistency
package and updates the existing unit test framework.
Also fixes issues discovered by the new unit tests.