fix failling test on Jenkins after ee1e270

This test is failing on Jenkins build on 2.5, 2.6 and 3.0. 
This is happening since #4477

I hope this modification can fix the build.