query api recursivly
extended tests