Query server

Can we abstract this part out as a function `_test_sample(Server, args)` or something?