Fix bad test causing random failures