add tests for right hand side optimization of matrix inverses for both normal inverse and cholesky based inverse