added test for smaller matrices