TST: add tests for algos.factorize (GH6212)
Merge pull request #6231 from jreback/test_factorize

TST: add tests for algos.factorize (GH6212)