add tests for _query_to_kwargs func

add test case for _query_to_kwargs function in v2 api.
raise InvalidInput on invalid operator

Change-Id: Ia9e9b3905327d21e3c6f91aa0acd36f19f4f59b0
Partial-Bug: #1217129
Merge "add tests for _query_to_kwargs func"