Added test cases for genrating file with user defined name.