state machine test fine
count test ok