[managed][client] Fixed broken tests and renamed ToQueryString to ToODataString