Added Transition.size() method and test