Added test case for #7 fix