fixed some kirbytext tag bugs and wrote more tests