printTextBox() and test management in doTest method