started working on testcases for statemachines