Added statemachine syntax and some dummy tests.