Added test to TagProcessorTest, added equals & hashCode functions to Tag,return valid type tag when a line contains it.