Test of fecthing the state machine