The victory brought relief to Besiktas after a nervous end to the season, with defeats in their previous two matches.