Added a few tests of with with variables/attributes.

They don't demonstrate any new bugs so far, but I wrote them, so what the heck.