modified view to merge variable into the template, more clear functional test