testing with smaller matrices