The BencodeTestTools class extracted.