Traditional remedies used by gardeners to deter slugs and snails are to be tested scientifically for the first time.