Add test for destroying session effect in templates

The test shows, that after destroying a session, it's old value is still
set inside a template