Refactoring manager_spec