O'Brien hits historic first test century