Conditionally injecting isRight in tests2