fixed type checking compile errors in AggregateParser and FilterParser
added tests to check the correctness of the option comparison methods;