adding unit tests for various resume on reconnect scenarios