added mocha test for session count