fix tests

I mean astype(). The old code:
numpy.asarray(0.).astype(...) where giving a numpy scalar in the past on travis.
numpy.asarray(0., dtype=...) give a numpy ndarray as what we want for the test. I'll re-write it to make it more clear