make tests work and enable travis-ci