session tests, cleanup