Add prepareView test spec, and some cleanup.
Test spec for default controller.