tests for disposing of views