fix test of pdf render (that was actually testing png), and vice versa

following discussion on https://github.com/laurentj/slimerjs/pull/235