apply_diffs adds last bit of text if no more diffs
added test for applying diffs to empty string token