India 's cricket team has scored 365-5 by the close of play on the first day of its third and final test match against Pakistan in Bangalore .