Add a test for the bugfix