some tests fixes for travis-ci