add test for creating a simple textfield
fix testcase
add some code to create the fields