fix test that fails on jenkins upgrade jobs