Fix typo in unit test for legal_file::smash_extensions.

- Removed duplicate condition.