Simplifying server initialization in child process for tests