added issue #10 as a test case