I still think the closure generation should be outside of the write open tag method, but even once that's moved, this is a good assertion.