Test setBuffer.
Move the benchmarks to the bottom of view_test.go.
Add a test for a view's window.
Test SetScratch.
Test SetOverwriteStatus.
Test IsDirty.
Test closing a view.
Merge pull request #317 from erbridge/view_test

View tests setBuffer SetScratch SetOverwriteStatus IsDirty and Close.