Wrote __views__ module test.

Test makes sure that corrupt __views__ modules are handled gracefully.