fix test when using NumPy 1.7