Unit tests for aggregate functions and skip/take