update session statistics and add test