Fix EZP-23176: check if session is started, fix test