Add a unit test that shows how you can mock the view loader.

Fix for #134