Just change the order of elements inside on element:
<state name="Test">
<on event="timeout" >
<event-listener class="TimeoutListener" />
<timer duedate="30 seconds" />
</on>
<transition name="Branch1" to="Result1">
</transition>
<transition name="Branch2" to="Result2">
</transition>
</state>
And that should do the trick.
HTH