made test for statehandler