Template resolution finally working in BOTH jUnit as well as webapp