fixed asynchronous test stability in Session.js