Added a test for the text criterion control