[Bugfix] Forgot to return response (when status is not 2xx and format is text)
Update regex in test