checking disconnect_on_cancel in test