Fix parseTag and tests.