Fixed tag comparison testing code.