Improve speed and resiliency of web session passivation tests.

These tests have been suffering from timing related failures.  This pull request fixes that.