Added test case for bug #43
Fixed #43

Thanks for the report