add test case from #33

Issue #33 is now fixed. Added test case to C code. Closes #33.