Fix bug bad stat command for fms
Some fix in FMS automtests