Added tests for ApplicationController