Add test: Two templates with classes with equal names.

This test passes. The classes are merged.