fixed gettestbed query