Added functional tests for department RESTful resource