Harden applications list parsing

Symptom: partial applications list display during searches,
 if int(testing) == 1:
UnboundLocalError: local variable 'testing' referenced before assignment