wrote test for renaming a function with injections