Fixed test in case numpy or scipy are not available