[1.7.x] Fix broken test