Destroy the session after a test

This can help with one hard-to-find bug in tests.

Steps to reproduce will be provided.
Thanks!
I'll make additional check.