Added a test case demonstrating issue #837.