Added enum helper and associated test harness.