added test to help fix #80

I added a test to reproduce the issue. I tried to find the cause but the 'magic' of patching managers is just to strong for me :)