Added test case for verifying #39

Please use the unit test to verify the issue in #39

Thx,
Sebastian