test userfunction with body template