Replace use of assertTag() with something much uglier