rest: Fix WWW-Authenticate header test