extractData: adapted tests for new public method extractData.