add missing tests
prepare names for StatefulSession
implement state check