Adding test for patch-caching problem that arose in Tortoise