tests: add test for server start/stop events