Some kinks to work out. Gets the path from the buffer at a point using the test_region function.