Added test for path building.