Updated api to support arbitrary path testing