added max_date param, fixed param bug

added further query parameters for api methods. fixed bug when reading
query parameters in listOpinions method.
fixed buggy tests
added tests for max_date param