KFSUPGRADE-1002 Add test for flags