Correct test prefix and close connection by consuming the response