adds tests and implementations for AttributesMap, Comment, Text