Added a test method for departments in defaultcontroller.