[tests] a little refactoring
[tests] travis: db on ip