Add mock event dispatcher to fix error using functions_content