update teste of phantomjs to create pdf on the fly'