fix tests so they can pass on travis ci