Fixed my broken test.
since I added slug to get indexed, it was finding the department from the old title since the slug wasn't changing.