Adds test for fix of issue #276