Reverting testing changes in ApplicationController