to add the element to file with test cases