_build_filter and _query done.
more test codes.