Participants were also asked the reasons for their last HIV test. Testing as a result of an episode of unprotected sex, condom error/accident, and/or sexual partner change was attributed to a perceived risk event, while testing as a result of a regular/routine sexual health check or offer from a health professional was coded as part of a regular sexual health check. Other reasons (e.g. visa requirements, blood donation, in vitro fertilization/sperm donation, other medical treatment, or life insurance applications) were coded as “other”. Categories were complicated by multiple responses, but our measure is hierarchical in that testing as a result of a risk event was prioritized over routine testing, and the latter was prioritized over “other”.