A bizarre science experiment has shown that you don't need to actually eat garlic in order to taste it.