Fix exception handling during test init.