[ issue 1168 ] Added test case