also mock unqualified functions in package environment