Add dummy test.
Remove unreachable code.
Add missing comment.
Additional check aggr.
Adding tests.
Improved NULL handling of aggr function.