Added tests for text field