Made matrix sum test terminate on failure rather than continue