validation bugfix
aggregate_function enhancement
test fix