Add test to demonstrate #1593 - @Dissimulazione

Still need to find a fix for this, but I have a test case that demonstrates the problem.