Your pesto may taste like grass for two reasons. If you have used poor-quality basil that lacks flavour, then it will be like using any green leaves. The other cause is if you have used too little oil, causing the basil to bruise and lose its flavour when processing.