Updated analyzer test
Added missing term aggregation options. Added test for term aggregations
Added tests for avg aggregation
Added range aggregation test. Added convenience range method