connection and session tests