Added test for issue 7