Command array for dialogText is passed test.

1. Minor adjustment
2. Add test function.