Test for fix from @marangonico

Added a unit test for the fix from @marangonico