Added test function for paths.
added test function for paths