BUG: Add a test for Ticket #2189