tests/calc/hazard_curve_test:

Factored out test fixtures for `HazardCurvesTestCase` into a `setUp`
method.
tests/calcs/hazard_curve_test:

Added a test to exercise the functionality where an error occurs with a
source. This test ensures that the error is captured and re-raised with
the source_id included in the error message.