- Added tests to cover. Fixes #1853
- Added tests to cover
Also cleaned some phpdocs and extracted register actions to their own service.