TST: fix test failure for stats.chisquare with masked arrays.