adding statemachine tests
updated README