Fix crashes in shuffler tests.