small modification on sseg testing
small modif to have more generic code