Test of fsm module