Created server restart and stats methods and tests for them