Given the right conditions, plus a bit of luck, even mediocre teams can beat much better teams at home! The competition is called test cricket ~ unarguably the hardest team sport to master, just ask the yanks or the Chinese.
Take away the novelty factor of D/N test, plus the pink ball that did very little (if anything) apart from some movement under the lights. There was a slight chance that this game could;ve gone to the fourth day, you could say that it was the perfect storm that WI had to face. Not easy to overcome that, just ask Ind in Eng/oZ 2011, or Eng down 2007 & 2013, or SA/Oz in India 2013 & 2015.
The point is tests are usually lopsided when the home team is better, or much better, in their conditions as compared to the opponents. That's why the Windies didn;t lose a test series in WI for 22(?) years, Ind don;t look like dropping a test at home except against one of the top 3 or Oz at home just as well.
Basically test cricket is like a 4D game, whereas LO matches are more 3D, you need a lot more bases covered to compete in tests, especially abroad. This has been true for as long as I can remember, in that the nature of the beast (test cricket) hasn;t changed in over 140 years.