Added functionality to mock any page type

Added functionality to mock any custom page type that inherits PageData
or implements IContent.