Updated tests to fix issues SCION/#14 and SCION/#15.
Added tests for internal transitions.