tests for qr and lu
add tests for svd and cholesky, catch exception and return nil in cholesky