Fix infinite recursion when prepending modules into TestCase