Fix segfaults in add-on tests

This pull request fixes the segfaults in the three fast simulation add on tests.
Unfortunately, with this fix, the tests still fail, but later with an unrelated error, a checksum mismatch for class HcalCholeskyMatrix.
Please merge this request as soon as convenient.