TST: move tests for #6205 to class infrastructure to enable numexpr skipping
     if not installed