Use xtestenv for travis-ci and re-enable c++ tests.