Fix test cases to work on Travis-CI. Fix execution of Maven to work on
both Windows and the others.