Test pid running api server.