adds a test for the bugfix