TST: Add tests for memory deallocation in Matrix and Identity Linear Operators