Fixed factories

Fixed factories with default *state*=ACTIVE.
Added new factory: CIRelationFactory.