add test url to middleware helper