bug #26 fixed; test-case added