callback must be called at beginning of tests so exceptions can pass through