Unit tests for ContextMenu and TextField