Added TextPrimitive and tests, reply and tests