Testing injecting dependency