Revert "Fix tests when running under Jenkins"

This reverts commit 7183dabc84362a745bf0381cd1cceb303338565f.