Add prepareView test spec, and some cleanup.
Test spec for default controller.
Merge pull request #20 from leftclickben/master

Add tests