Destroy the session after a test

This can help with one hard-to-find bug in tests.

Steps to reproduce will be provided.
Also, won't it cause starting session even when we don't need it?