test in server for api