api test assertion