For the mock layout I'd prefer if you mixed the prototype of the VerticalLayout into a new layout, a la what you did on line 26. Then use jasmine's `spyOn` to stub out the mock. Reason being is that if the layout API changes, the mock stubs will fail, making this test more refactor proof.