Have you checked the phone's settings to make sure that VoLTE is enabled? Where are you located? Do the speed tests vary with location and time of day?
Also, do you mind checking your APN settings? Please post a screen shot if you can, this might provide some clues as to the problem.
Settings>Connections>Mobile Networks>Access Point Names
And did you factory reset your phone when you brought it over from AT&T?