Add a test case for the fix

This commit fixes #18