Fixed a broken test on 3.x