Tests: optimize assertion of the commonly generated files.