Beam test results of thin n-in-p 3d and planar pixel sensors for the high luminosity lhc tracker upgrade at cms