Pakistan handed demanding workout by Rob Newton’s century