Fix tests for Jenkins