tests and encapsulated event tracking/custom vars