added test to make sure that effects of component medatadata rules on changing flag aren't cached