tests/templates: Ensure to deep copy mocked configuration
This fixes tests when building buster package for swh-web.