Change test code
Fix C Code paging issue and query-length limitation