add test for department and user