TST: add tests for old version of numexpr

closes #5857
closes #5855
closes #5845