tests for factor_product