Matrix3 scaling fix and test case