added test case to check method and path methods