[test] Refactor Servent startup into separate function