Added test for inverse.