Test of a SMA algorithm