 				# Test each view if no query parameters present
 				pending = results.views.length
 				for view in results.views then do (view) ->
-					testRequest "views", "http://#{server.address}:#{server.port}/#{context.name}/#{view}", ->
+					testRequest "views", "#{host}/#{context.name}/#{view}", ->
 						callback() unless --pending
 			else
 				# Test each query for each view
 				pending = results.queries.length * results.views.length
 				for query in results.queries then do (query) ->
 					for view in results.views then do (view) ->
-						testRequest "queries", "http://#{server.address}:#{server.port}/#{context.name}/#{view}?#{query}", ->
+						testRequest "queries","#{host}/#{context.name}/#{view}?#{query}", ->
 							callback() unless --pending
 
 		testRunExamples = (callback) ->

		pending = Object.keys(@box).length
		if pending
			for timbit of @box
				request {uri: "http://#{server.address}:#{server.port}/#{timbit}/test" }, (error, response, body) ->
					master += body
					res.end master unless --pending
		else
			master += ck.render(views.test, {})
			res.end master


	# automagically load timbits found in the ./timbits folder
	path = "#{config.home}/timbits"


	# configure test
	@server.get ("/#{name}/test"), (req, res) ->
		timbit.test "http://#{req.headers.host}", timbit, (results) ->
			res.send ck.render(views.timbit_test, results)

	# configure the route
