diff --git a/.travis.yml b/.travis.yml
index 040a943540ac27b11b9fe967cd982838c57d653c..00ff31932011a0a230296d332f6b1107098392fa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,7 +21,7 @@ before_install:
   - conda info -a
 install:
   - conda config --add channels conda-forge
-  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl nose flake8 coverage webtest
+  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl nose flake8 coverage webtest 'icu=58.*'
   - source activate test-environment
 script:
   - flake8 --config=.flake8 bin/ geomagio/ test/
diff --git a/test/algorithm_test/XYZAlgorithm_test.py b/test/algorithm_test/XYZAlgorithm_test.py
index 922a3ce37362982756fe36de167aa5aebc82f2cb..8d08574477dc5241c4524ac8e04ce7d67f2d6601 100644
--- a/test/algorithm_test/XYZAlgorithm_test.py
+++ b/test/algorithm_test/XYZAlgorithm_test.py
@@ -54,7 +54,7 @@ def test_xyzalgorithm_limited_channels():
     # d has `count` values (same as input)
     assert_equals(len(d.data), count)
     # d has no NaN values
-    assert_equals(len(d[d == np.NaN]), 0)
+    assert_equals(np.isnan(d).any(), False)
 
 
 def test_xyzalgorithm_uneccesary_channel_empty():
@@ -83,4 +83,4 @@ def test_xyzalgorithm_uneccesary_channel_empty():
     # d has 2 values (same as input)
     assert_equals(len(d.data), 2)
     # d has no NaN values
-    assert_equals(len(d[d == np.NaN]), 0)
+    assert_equals(np.isnan(d).any(), False)