Separating server definition from starting it, for testing.