tested rest query