New method developed for testing herbicide resistance in weeds