Cleanup: Test doesn't need to check if server is running in a process or thread.
mockserver: flush h5 file after writing data.