It was an encouraging display by Farah ahead of Moscow World Championships.