added SessionHandlerInterface and updated tests.