Fixed bugs on protocals
Added manager test and fix bugs.
Adjust Manager to be descriptor