100% covereage for flag controller test. Added flag validations