Added Attributes to Term to match db. Added Repository Tests