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

ck = require 'coffeekup'
Log = require 'coloured-log'
views = require './timbits-views'
util = require 'util'

config = { appName: "Timbits", engine: "coffee", port: 5678, home: process.cwd() }
server = {}

				# Test each view if no query parameters present
				pending = results.views.length
				for view in results.views then do (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","#{host}/#{context.name}/#{view}?#{query}", ->
							callback() unless --pending

		testRunExamples = (callback) ->
