tests fails in Travis CI but not locally