Added toSpy method

Initialises mock to spy on a methdod