Regression test for issue #5

Prettymuch just stealing the testcase provided on the bug tracker and sticking it in the test framework.