xff: fix unittest crashes