test view with template