Fix test since EINVAL is now fatal