This PR make the op A_Xinv_b not crash. But it don't have tests. We need test for it now that it don't crash. Can you add them?