Use `appendView`
Merge pull request #9696 from twokul/view-tests

Use `appendView`