clean up assertErrorRegex copy-pasting in unit test modules via central EnhancedTestCase