correct some mistakes in assertions checking flags variable nature