Create Test Functions

Create test functions for matrix inversion and caching.