Fix failing tests caused by unresolved template directive.