Fix test running on Jenkins.