Add integration test to ensure InjectionError is raised for invalid injections