fix etag-version conversion logic and add test cases