Fixed bug in unittest for transfer permissions.
Removed unused registry manager.