Added tests to generate_filename