fixed relationshipTo bug; added relationships test