Added a test prooving issue #22
Fixed issue #22