added tests for department(should not create 2 department with the same name)