test case added for tail Program