finally got the tests to pass with injection