added examples for testing the life-cycle of the server