improved test case, found new bug, fixed it