Fix pileup tests that check for end position