Add unit test on managers

This PR adds unit testing on managers classes.