only inject stub namespace if a core function has been stubbed