Fix testEmptyPath test for TargetPanel.
Added possibility of a warning in the form of a yes/no question.
New prompt has been added since it seemed like this is what the test was
trying to convey, for example the message printed out is "Target.warn".