Adding getfile_by_sufix and tests.