added test for department
released department logic
added api: department.getAllDepartments
.