add test for memory management after calling matrix destructor