This test reproduces a crash when reproducing sample_lost, see issue #489
