Warner breaks Test century