Add parser tests for decoding of entities in IDs and fragments