Fix \ and / for diagonal matrices. Modify tests to check some of the changes. Fix errors in revealed by the test changes.