Added test for running callback on server stop