tests: Add unit test for text model

Add tests for activate/deactivate and unfocusing of the assigned
surface.
4 files changed