response code unit tests