pandoc --pdf-engine /usr/bin/xelatex -f epub -o test.tex
and then to pdf manually /usr/bin/xelatex test.tex to get the full output and error message.