added test for router rest methods, addded setPathInfo for request widget