Add ENABLE_MODELTEST cmake variable/define, default to false
Add support for testing LayerTreeModel from the app
Fix flags for invalid LayerTreeModel index

.. bug reported by ModelTester