server start and stop in rest tests corrected