Create spy.record and spy.verify.