Me and few of my friends have bought the test papers for our GATE preparation from an online resource.
PrepLadder is the place where you can have it. But I would suggest you to first read the description before buying the same, rather than blindly trusting anyone. We are been relying on this source since long time and hence we trust them.
GATE 2017 test papers