Tests for server stop event