TST: fix test on scipy dev version