Add testcase for issue #237