support for testing sessions