Allow to pass view instances to create ajax request in tests (instead only component)

@tomaszdurka please review
It is probably convenient to allow any kind of view here, but in the end we allow to get non-component view when getting it from `$viewInfo['CM_Component_Abstract']`. Results in reloading non-component view while running `reloadComponent`.

What is the reason for this change?