Testing file extension extraction and comparison