correctly fix the test with numpy 1.7.1
Merge pull request #1365 from nouiz/fixes_numpy_1.7.1

correctly fix the test with numpy 1.7.1