fix failing tests on travis