Fixes tests

Seems like we receive the pane `destroyed` event several time when
running test, raising an exception when trying to destroy an already
removed view.