Add tests for Fsm module.