Fixed broken tests on Travis-CI.