test formation pdf exist before segue