Wrong test on http status in async request