refs #7233 - refactor FactoryGirl methods to after(:action) and use asso...

**[Do Not Merge before foreman PR#1784 is merged]**
 refactor FactoryGirl methods to after(:action) and use association for library in organization_factory.