Add CmsException
Add some methods and test them in unit tests