Fixed memory host tests for long polling reconnect

#2501