Move mock logick to base class