test matrix multiply and inverse