Add proper getDepartments testing, mocking dep page