tests with flag solution