Fix text-tests build