Added more tests
Fail if sub aggs are specified
Updated docs