Refactored RDAP redirect test