Added mocking capabilities

Hi,

I created a basic mocking for the RConnection.