Tests for focus events