web: Fix asserts in templates tests