add retrieveData to Tag
removed some redundant code from TestTag
add test for Tag::retrieveData