Add file extension factory tests