Pass result of run() to mock() (Feature request #687)