Added extra verifyReconnect checks to ensure that if the client goes to sleep that we do not mark it active prior to trying to reconnect.

- Also added a test to verify that this scenario is covered.
- Changed how the test utilities verify that foreverFrame is enabled.

#2484