fixed bug for catching unlocked wallet exception in executing tests