api.RPCServerApp: Adapt sync rpc server with async rpc server
This also adds more tests around the instantiation of such servers.