Issue #2611798 by martin107: Added the $flagService property to FlagTestBase and changed FlagServiceTest to inherit from it.