added some test cases in a pdf
Finished same file function