Added Command Operation Pattern to XTextTest