Mocha: Fix sessionTimeout test

Revert part of #3875 to get the test suite passing again