add test cased for matrix, fix matrix.getRotation