mock interface from base class

I still trying to use the mock on a complex class based on redis. This PR allow the mock to implement interface.