added the testcases for the given programs