It is possible to rely on testing too much! The last round of changes
work fine for the test suite but infact broke the behaviour of the
extension. More work required on the test suite I think.
Tests for Layout, LayoutFactory and setup(app). Resulted in structuring
some code so that LayoutFactory uses other factories to generate the
helpers and handlers for the Layout.