fix tests and enable travis