Call page.sync() instead of page.close() at replicationEndpoint
clarify need for stopping replicationEndpoint
Add text to test assertions.