added more tests to managementController