Added test code for bail out.