Added test cases for issue 4129