Unit tests for XML templates