add inv overloads which returns whether inverse successds.
rename test case