fixes #26

added test case