[test] Updated transformation chain test and fixed GetMatrix() function of TransformationChain.