Fix testData for if template
Reimplement AssertTemplate