Updated test cases for Matrix and Quaternion