fix tests error on travis build