Test factoring