Fix quality flaws.
Add test for files suffixes.