Fix failed unit test in Travis CI.