What happens here if the transition is not found?  Does it cause an error?  I would think the conditional is there for a reason... the tests may not be covering what happens in this case.