fix tests for passing travis-ci