add a test for tag parsing logic