Moved to external extract method

Now every filetype can override the test path extraction