[Sailee] Added rspec for models:defect_analysis and comparative_analysis
[Sailee]: Modified the factories