promote dummy_server from tests to lib