Unit test edm::global modules

This implements a Produce, Analyzer and Filter for each of the Cache templates and checks that the correct number of transitions is seen.