added test for core/flags.hpp