[Bugfix] fixed a bug where the role were not properly read from XML

Added tests for reading the model from XML