fix tests for travis-ci