Test case for #66
Fixed #66