adds self tests for state_machine
Merge pull request #3 from kholtobin/nik_tests

adds self tests for state_machine