Changed the treatment of flags and the behavior of status::Entry
Improved a test