anchor.diff:  
   		<cfset loc.args.usedefault = false>
   		<cfset controller.usesLayout(argumentCollection=loc.args)>
  -		
  +
   		<cfset loc.e = "false">
   		<cfset loc.r = controller.$useLayout("index")>
   		<cfset assert('loc.e eq loc.r')>
  -		
  -		<cfset request.cgi.http_x_requested_with = "XMLHTTPRequest">
  -		
  -		<cfset loc.e = "mylayout">
  -		<cfset loc.r = controller.$useLayout("show")>
  -		<cfset assert('loc.e eq loc.r')>
  -		
   	</cffunction>
  -	
  +
   	<cffunction name="test_should_respect_exceptions_ajax">
   		<cfset request.cgi.http_x_requested_with = "XMLHTTPRequest">
   		<cfset loc.args = {template="mylayout", ajax="mylayout_ajax", except="index"}>
   		<cfset params = {controller="dummy", action="index"}>
   		<cfset controller = $controller(name="dummy").$createControllerObject(params)>
   		<cfset controller.usesLayout(argumentCollection=loc.args)>
  -		
  +
   		<cfset loc.e = "mylayout_ajax">
   		<cfset loc.r = controller.$useLayout("show")>
   		<cfset assert('loc.e eq loc.r')>
  
positive.code: 		<cfset params = {controller="dummy", action="index"}>
  		<cfset controller = $controller(name="dummy").$createControllerObject(params)>
  		<cfset controller.usesLayout(argumentCollection=loc.args)>
  		
  		<cfset loc.e = "mylayout">
  		<cfset loc.r = controller.$useLayout("show")>
  		<cfset assert('loc.e eq loc.r')>
  
negative.code: 
  		<cfset loc.args.usedefault = false>
  		<cfset controller.usesLayout(argumentCollection=loc.args)>
  
  		<cfset loc.e = "false">
  		<cfset loc.r = controller.$useLayout("index")>
  		<cfset assert('loc.e eq loc.r')>
  	</cffunction>
  
  	<cffunction name="test_should_respect_only">
  		<cfset loc.args = {template="mylayout", only="index"}>
  		<cfset params = {controller="dummy", action="index"}>
  		<cfset controller = $controller(name="dummy").$createControllerObject(params)>
  		<cfset controller.usesLayout(argumentCollection=loc.args)>
  
  		<cfset loc.e = "true">
  		<cfset loc.r = controller.$useLayout("show")>
  		<cfset assert('loc.e eq loc.r')>
  