Fixed automate tests

* A new class is added call Domain which represents the new Domain level in the Tree.
* At the moment domain is an arg to make_path which allows you to have the same ability to create namespaces from paths that you did before.
* Extra trickery is needed to sort the button labels, as the path length is no longer 1, but 2 because of the introduction of the domain.
* Changed test_crud to test_instance_crud in the instance tests.