Fix domain tests and read-resource for redirected operation