Add segment .offsets file corruption test

The same as the previous commit but for .offsets.