Making Transition.equals() more robust including adding additional test cases.