tests for text field selection