Tests and tweaks for text fields