From Tests to Proofs