Added tests for inverse of a matrix