use choices keyword
add test for validating the aggregation field