Properly close tags in unit tests

We'll see if this fixes the failing tests in IE8.