Change 1/x to x^-1
Fix test that checkes matrix reconstruction error