TST: patch all module level assert functions to TestCase. #8023