If no subscribing witness competent to testify resides in the state at the time appointed for proving the will, the court may admit the testimony of other witnesses to prove the capacity of the testator and the execution of the will, and as evidence of such execution may admit proof of the handwriting of the testator and of the subscribing witnesses.