Fix tests on jenkins