test for quaternion to matrix conversion