Add basic test case.
Express the behaviour in a test.
Make sure tags don't get closed accidentally.