Fix tests for scipy <= 0.9