Add tests for view-composers-as-objects