Update molecule drawing unit tests.

I think older versions of the pycario libraries cannot create surfaces
without a temporary file. This makes most tests work with that scenario,
and adds another test for it.