Added tests for QualityFactorFactory.