Test beam results of 3D silicon pixel sensors for the ATLAS upgrade