added complicated bail test
augmented bail test
fine-grained bailing working