chg: added test for possible seg fault in factorization