fixed test for numpy error in Travis tests