Fixes an incorrect unit test (you're not allowed to append a view to the document, only panes).