Add tests to cover wrapTag