added test to reproduce issue #50