fixed async http response assertion in test