New test case that fails when the bug discovered in #340 is present. Closes #340