More tests. Add sum, avg query.