added test for random symmetric matrix, seems to work