Added testing template function