[BUGFIX] Use filename with extension for copy to temp test