added first version of flag test