Fix order-dependent unit tests

Found this issue after testing against scipy 0.9.0.