added test for the deadlock-for-lack-of-drainage bug