Cleaned unneeded intermediate matrices used in testing