First, can you explain to me what you are trying to prove working correctly by following codes. I really can't tell. Maybe im to me in Chinese.
I think you need to find out some way to indirectly getting the params that runtimeViewProvider/runtimeView received.
e.g. Display to page title via javascript somehow / send notification to test utils somehow. It's hard but it's what test cases do.