fix tests failing on Travis