Jcs department controller tests

This also has a couple changes to the ApplicationController.