aggregate: Add enum assigning test