Added tests for avg aggregation
Added range aggregation test. Added convenience range method