tests: checking if sessions are cleaned up properly