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

@tomaszdurka please review