England 's Alistair Cook has hit a century in his test debut while Kevin Pietersen added another 87 runs to lift their team on the fourth day of its opening test match against India in Nagpur .