Added test units for application controller