Test case Updated
Modified Code with respect ctx properties