Changed test api to use go-martini