tests fix for travis ci