proper unit testing, separate template wrapper